﻿using Abp.AutoMapper;
using SingleUserMall.Stores;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.ShoppingCarts.Form
{
    /// <summary>
    /// 购物车元素
    /// </summary>
    [AutoMapTo(typeof(ShoppingCart))]
    public class ShoppingCartItemForm
    {
        /// <summary>
        /// 商品规格id
        /// </summary>
        public long ItemSpecId { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Qty { get; set; }

        /// <summary>
        /// 是否是朋友地址
        /// </summary>
        public bool IsFriendAddress { get; set; }

        /// <summary>
        /// 是否是朋友
        /// </summary>
        public bool IsFriend { get; set; }

        /// <summary>
        /// 购物车订单（0：商品购物车订单，1：购买树订单）
        /// </summary>
        public ShoppingCartType? ShoppingCartType { get; set; }

        /// <summary>
        /// 抢购Id
        /// </summary>
        public long? BargainId { get; set; }

        /// <summary>
        ///  朋友的用户Id
        /// </summary>

        public long? FriendUserId { get; set; }

        /// <summary>
        /// 所有收益归朋友
        /// </summary>
        public bool AllBenefitForFriend { get; set; }
    }
}
